/**
 * file name:		TestThread.java
 * copyright:		© 2009 Kingsoft
 * author:			TanMenglong
 * description:		HERE
 */

public class TestThread {
	public static class A extends Thread {
		protected boolean result = false;
		
		@Override
		public void run() {
			result = true;
		}
		
	}
	
	public static class B extends Thread {
		protected boolean result = false;

		@Override
		public void run() {
			result = true;
		}
		
	}

	public static void main(String[] args) {
		A a = new A();
		B b = new B();
		
		a.start();
		b.start();
		
		try {
			a.join();
			b.join();
		} catch (InterruptedException e) {}
		System.out.println(a.result && b.result);
	}

}
